package com.thssh.ui.lsn11;

import android.graphics.drawable.Animatable;
import android.graphics.drawable.Drawable;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.app.AppCompatDelegate;
import android.view.View;
import android.widget.ImageView;

import com.thssh.ui.R;

public class Lsn11Activity extends AppCompatActivity {

    static {
        AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getSupportActionBar().setTitle(R.string.des_lsn11);
        setContentView(R.layout.activity_lsn11);
    }

    public void startAnimClick(View view) {
        ImageView iv = (ImageView) view;
        Drawable drawable = iv.getDrawable();
        if(drawable instanceof  Animatable) {
            ((Animatable) drawable).start();
        }
    }
}
